#include "ThreadPool.hpp"
#include "Task.hpp"

using namespace My_ThreadPool;

int main()
{
    ENABLE_CONSOLE_LOG();
    
    ThreadPool<task_t>::getinstance()->Start();
    for(int i = 0; i < 10; i++)
    {
        ThreadPool<task_t>::getinstance()->Equeue(Push);
        sleep(1);
    }

    ThreadPool<task_t>::getinstance()->Stop();

    ThreadPool<task_t>::getinstance()->Wait();

    // std::unique_ptr<My_ThreadPool::ThreadPool<task_t>> tp = std::make_unique<My_ThreadPool::ThreadPool<task_t>>();

    // tp->Start();

    // for(int i = 0; i < 10; i++)
    // {
    //     tp->Equeue(Push);
    //     sleep(1);
    // }

    // tp->Stop();

    // tp->Wait();

    return 0;
}